package com.jingdianjichi.oss.service;

import com.jingdianjichi.oss.entity.FileInfo;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;

/**
 * ClassName:AliStorageServiceImpl
 * Package:com.jingdianjichi.oss.service
 * Description:
 *
 * @Author fst
 * @Create 2024/10/3 21:26
 * @Version 1.0
 */

public class AliStorageAdapter implements StorageAdapter
{

    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void uploadFile(MultipartFile multipartFile, String bucket, String objectName) {

    }

    @Override
    public List<String> getAllBucket()
    {
        List<String> list =new LinkedList<>();
        list.add("aliyun");
        return list;
    }

    @Override
    public List<FileInfo> getAllFile(String bucket) {
        return null;
    }

    @Override
    public InputStream downLoad(String bucket, String objectName) {
        return null;
    }


    @Override
    public void deleteObject(String bucket, String objectName) {

    }

    @Override
    public void deleteBucket(String bucket) {

    }

      public String getUrl(String bucketName, String objectName)
      {
          return "";
      }
}
